home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 3-141 hp dj 500c for dos color / 1.ima / INSTDRV.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-05-05  |  3.2 KB  |  137 lines

  1. echo off
  2. if not exist %1\install.ddf goto USAGE
  3. cls
  4. echo ************************************************************************
  5. echo **
  6. echo **             NEW DRIVER INSTALLATION
  7. echo **             1-2-3 Release 3.1  (tm)
  8. echo **
  9. echo **
  10. echo **    This procedure will install new drivers from a supplemental
  11. echo **    drivers distribution disk into your 1-2-3 Release 3 (tm)
  12. echo **    directory and make them available for you to install using the
  13. echo **    1-2-3 Release 3.1 (tm) Install program.
  14. echo **
  15. echo **    Note that the copy of INSTALL.DDF in your 1-2-3 Release 3.1
  16. echo **    directory will be renamed to INSTALL.BAK.
  17. echo **
  18. echo **     Verify that your 123 Release 3.1 directory is:
  19. echo **
  20. echo **                    %1
  21. echo **
  22. echo **    If this is not correct, type Control-Break to quit, and
  23. echo **    start again.
  24. echo **
  25. echo **     Otherwise...
  26. echo **
  27. pause
  28. if not exist %2:*.DDF goto APPENDA
  29. goto APPENDB
  30.  
  31. :USAGE
  32. cls
  33. echo ************************************************************************
  34. echo **
  35. echo **
  36. echo **  To use this batch file, type
  37. echo **
  38. echo **  instdrv a:\ b
  39. echo **
  40. echo **  where a:\ is the full path name, including drive letter, of
  41. echo **  your 1-2-3 Release 3.1 directory
  42. echo **
  43. echo **  and b is the drive letter for your distribution disk.  (This
  44. echo **  may be left blank if your disk is in drive a)
  45. echo **
  46. echo **  For example, if your 1-2-3 Release 3.1 directory is c:\123r3\ and
  47. echo **  your distribution disk is in drive b, type:
  48. echo **
  49. echo **        instdrv c:\123r3\ b
  50. echo **
  51. echo **
  52. echo **  Press Control-Break to quit, or to clean up,...
  53. echo **
  54. pause
  55. goto EXITERR1
  56.  
  57.  
  58. :APPENDA
  59. if not exist a:*.ddf goto USAGE
  60. cls
  61. copy %1install.ddf %1install.bak
  62. if errorlevel 1 goto EXITERR1
  63. copy %1install.ddf+a:*.ddf %1install.ddf
  64. if errorlevel 1 goto EXITERR2
  65. goto COPYFA
  66.  
  67. :APPENDB
  68. if not exist %2:*.ddf goto USAGE
  69. cls
  70. copy %1install.ddf %1install.bak
  71. if errorlevel 1 goto EXITERR1
  72. copy %1install.ddf+%2:hpdj500c.ddf %1install.ddf
  73. if errorlevel 1 goto EXITERR2
  74. goto COPYFB
  75.  
  76. :COPYFA
  77. if not exist a:*.dl? goto COPYFA1
  78. copy a:*.dl? %1*.*
  79. if errorlevel 1 goto EXITERR2
  80. :COPYFA1
  81. if not exist a:*.pbd goto COPYFA2
  82. copy a:*.pbd %1*.*
  83. if errorlevel 1 goto EXITERR2
  84. :COPYFA2
  85. if not exist a:*.lrf goto COPYFA3
  86. copy a:*.lrf %1*.*
  87. if errorlevel 1 goto EXITERR2
  88. :COPYFA3
  89. goto EXITOK
  90.  
  91. :COPYFB
  92. if not exist %2:*.dl? goto COPYFB1
  93. copy %2:*.dl? %1*.*
  94. if errorlevel 1 goto EXITERR2
  95. :COPYFB1
  96. if not exist %2:*.pbd goto COPYFB2
  97. copy %2:*.pbd %1*.*
  98. if errorlevel 1 goto EXITERR2
  99. :COPYFB2
  100. if not exist %2:*.lrf goto COPYFB3
  101. copy %2:*.lrf %1*.*
  102. if errorlevel 1 goto EXITERR2
  103. :COPYFB3
  104. GOTO EXITOK
  105.  
  106. :EXITOK
  107. goto EXIT2
  108.  
  109. :EXITERR1
  110. echo ***
  111. echo ***
  112. echo ***
  113. echo ****** An error has occured...Installation failed ******
  114. goto EXIT3
  115.  
  116. :EXITERR2
  117. echo ***
  118. echo ***
  119. echo ***
  120. echo ****** An error has occured...Cleaning up ******
  121. echo ***
  122. copy %1install.bak %1install.ddf
  123. del %1install.bak
  124. goto EXIT3
  125.  
  126. :EXIT2
  127. echo ***
  128. echo ***
  129. echo ***
  130. echo ******    INSTALLATION COMPLETE      ******
  131. echo ***
  132. echo *** Select Modify Current Selections from the Install program
  133. echo *** menu to add drivers to your 123.DCF configuration file.
  134. echo ***
  135.  
  136. :EXIT3
  137.